package com.example.service.impl.rabbitmq.direct.listener;

import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
public class MessageRabbitMQListener {

    @RabbitListener(queues = "direct_queue")
    public void reactive(String id){
        System.out.println("监视到RabbitMQ队列中的信息："+id);
    }
}
